﻿using System.Configuration;
using System.Data.SqlClient;

namespace DataAccess
{
    public class AppConfig
    {
        private static SqlConnection conn = null;
        public static readonly string ConnectionString = ConfigurationManager.AppSettings["DataBaseConnectionString"];

        public static SqlConnection GetConnection()
        {
            conn = new SqlConnection(ConnectionString);
            return conn;
        }
    }
}
